<template>
  <div>
    <el-button type="primary" @click="handleLogin">登录</el-button>
    <el-button type="primary" >退出</el-button>
  </div>
</template>

<script setup lang="ts">
  import { useUserStore } from '@/store/user';
  const userStore = useUserStore();
  const handleLogin = ()=> {
    userStore.storeUserLogin({
      username: 'admin',
      password: '123456',
    });
  }
</script>

<style scoped>
  
</style>